<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>支付成功</title>
    <link rel="stylesheet" href="mui/css/mui.css">
    <script src="mui/js/mui.js"></script>
    <link rel="stylesheet" href="css/style.css?v1.1.2">
    <script src="js/jquery-1.11.3.js"></script>
    <style>
        body{background-color: white;}
    </style>
</head>
<body>
<div class="mui-content" style="background-color: white">
    <div class="pay-success">
        <img src="./images/yes.png" alt="">
        <h1>支付完成</h1>
        <p id="successStr">订单处理中<span style="display: inline-block;width: 1.5rem;text-align: left" id="loadering"></span></p>
        <a href="#" class="pay-success-btn pay-disabled">获取电子收据</a>
        <a href="order.html">查看我的订单</a>
        <a href="index.html">去首页</a>
    </div>
</div>
<script>
    $(function () {
        let loader = $("#loadering");
        let timer = setInterval(function () {
            let str = loader.text();
            if(str.length>=3){
                loader.text("");
            }else{
                loader.text(str+".");
            }
        },500);

        setTimeout(function () {
            $("#successStr").html("订单处理成功");
            $(".pay-success-btn").removeClass("pay-disabled");
        },3000)
    })
</script>
</body>
</html>